<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
 <head>
  <meta http-equiv="content-type" content="text/html; charset=UTF-8">
  <title>需求</title>
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-base.css" />
<link media="all" rel="stylesheet" type="text/css" href="styles/03e73060321a0a848018724a6c83de7f-theme-medium.css" />

 </head>
 <body class="docs"><div class="navbar navbar-fixed-top">
  <div class="navbar-inner clearfix">
    <ul class="nav" style="width: 100%">
      <li style="float: left;"><a href="oci8.setup.html">« 安装/配置</a></li>
      <li style="float: right;"><a href="oci8.installation.html">安装 »</a></li>
    </ul>
  </div>
</div>
<div id="breadcrumbs" class="clearfix">
  <ul class="breadcrumbs-container">
    <li><a href="index.html">PHP Manual</a></li>
    <li><a href="oci8.setup.html">安装/配置</a></li>
    <li>需求</li>
  </ul>
</div>
<div id="layout">
  <div id="layout-content"><div id="oci8.requirements" class="section">
  <h2 class="title">需求</h2>
  <p class="para">
   OCI8 3.0 is included with PHP 8. It is also available
   from <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>.  For PHP 7, use OCI8 2.2
   from <a href="https://pecl.php.net/" class="link external">&raquo;&nbsp;PECL</a>.  OCI8 requires Oracle
   10<em class="emphasis">g</em> or later Oracle client libraries.
  </p>
  <p class="para">
   If the Oracle Database is on the same machine as PHP, the database software
   already contains the necessary libraries and header files.  When PHP is on a
   different machine, use the free
   <a href="https://www.oracle.com/database/technologies/instant-client.html" class="link external">&raquo;&nbsp;Oracle Instant Client</a> libraries.
  </p>
  <p class="para">
   To use Oracle Instant Client, install the <code class="literal">Basic</code>
   or <code class="literal">Basic Light</code> Oracle Instant Client ZIP file, RPM
   package, or DMG package.  When building OCI8 from source code, also install
   the Instant Client <code class="literal">SDK</code>.
  </p>
  <p class="para">
   You must run PHP with the same, or a more recent, version of the
   Oracle libraries that OCI8 was built with.
  </p>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    Oracle&#039;s standard client-server network interoperability allows connections
    between different versions of Oracle Client and Oracle Database.  For
    certified configurations see Oracle Support&#039;s Doc ID 207303.1.  In
    summary, Oracle Client 19, 18 and 12.2 can connect to Oracle Database 11.2
    or greater. Oracle Client 12.1 can connect to Oracle Database 10.2 or
    greater. Oracle Client 11.2 can connect to Oracle Database 9.2 or greater.
   </p>
  </p></blockquote>
  <blockquote class="note"><p><strong class="note">注意</strong>: 
   <p class="para">
    Full OCI8 feature support is only available when using the most
    recent versions of the Oracle client libraries and database.
   </p>
  </p></blockquote>
 </div></div></div></body></html>